package com.ruoyi.slope.disposal.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.disposal.mapper.SlopeWarningDisposalMapper;
import com.ruoyi.slope.disposal.domain.SlopeWarningDisposal;
import com.ruoyi.slope.disposal.service.ISlopeWarningDisposalService;

/**
 * 处置记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-08
 */
@Service
public class SlopeWarningDisposalServiceImpl implements ISlopeWarningDisposalService 
{
    @Autowired
    private SlopeWarningDisposalMapper slopeWarningDisposalMapper;

    /**
     * 查询处置记录
     * 
     * @param id 处置记录主键
     * @return 处置记录
     */
    @Override
    public SlopeWarningDisposal selectSlopeWarningDisposalById(Long id)
    {
        return slopeWarningDisposalMapper.selectSlopeWarningDisposalById(id);
    }

    /**
     * 查询处置记录列表
     * 
     * @param slopeWarningDisposal 处置记录
     * @return 处置记录
     */
    @Override
    public List<SlopeWarningDisposal> selectSlopeWarningDisposalList(SlopeWarningDisposal slopeWarningDisposal)
    {
        return slopeWarningDisposalMapper.selectSlopeWarningDisposalList(slopeWarningDisposal);
    }

    /**
     * 新增处置记录
     * 
     * @param slopeWarningDisposal 处置记录
     * @return 结果
     */
    @Override
    public int insertSlopeWarningDisposal(SlopeWarningDisposal slopeWarningDisposal)
    {
        return slopeWarningDisposalMapper.insertSlopeWarningDisposal(slopeWarningDisposal);
    }

    /**
     * 修改处置记录
     * 
     * @param slopeWarningDisposal 处置记录
     * @return 结果
     */
    @Override
    public int updateSlopeWarningDisposal(SlopeWarningDisposal slopeWarningDisposal)
    {
        return slopeWarningDisposalMapper.updateSlopeWarningDisposal(slopeWarningDisposal);
    }

    /**
     * 批量删除处置记录
     * 
     * @param ids 需要删除的处置记录主键
     * @return 结果
     */
    @Override
    public int deleteSlopeWarningDisposalByIds(Long[] ids)
    {
        return slopeWarningDisposalMapper.deleteSlopeWarningDisposalByIds(ids);
    }

    /**
     * 删除处置记录信息
     * 
     * @param id 处置记录主键
     * @return 结果
     */
    @Override
    public int deleteSlopeWarningDisposalById(Long id)
    {
        return slopeWarningDisposalMapper.deleteSlopeWarningDisposalById(id);
    }
}
